wayland: Fix toplevel lookup before starting DnD
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 19 Nov 2015 19:26:11 +0000 (20:26 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Thu, 19 Nov 2015 22:27:26 +0000 (23:27 +0100)
commitec65c6d1ce8a5387016851646342d2ecc6fd7bbb
treec4bca920799126f59c52fe315470c4d8f5453282
parente3012dc9b303ccc8b0301e7702b5cec0368da59a
wayland: Fix toplevel lookup before starting DnD

We use the high-level gdk_device_get_window_at_position() to figure
out the window, although this one actually tries to find out the
current window under the device coordinates, which might well fall
outside the window, so NULL is returned in those cases.

Fix this by using the lower level _gdk_device_window_at_position()
that will return the toplevel without further lookups, so is more
desirable here.

https://bugzilla.gnome.org/show_bug.cgi?id=758250
gdk/wayland/gdkdnd-wayland.c